package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.Address;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author: 张志飞
 * @Date: 今天是 2020/9/25     现在是23:27
 */

@Transactional
public interface AddressService {

    void add(Address address);

    List<Address> findAddress();

    PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    void edit(Address address);

    Address findById(Integer id);

    void delete(Integer id);
}
